package hiatao.puzzle.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import haitao.puzzle.R;
import hiatao.puzzle.utils.StatusBarCompat;
import hiatao.puzzle.widget.DampView;

public class AboutActivity  extends Activity implements OnClickListener{

    private View top_back;


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//setContentView(R.layout.activity_about);
		setContentView(R.layout.activity_about);
		findView();
		init();
	}

	private void init() {
		top_back.setOnClickListener(this);
		ImageView img = (ImageView) findViewById(R.id.img);
		DampView view = (DampView) findViewById(R.id.dampview);
		view.setImageView(img);
		StatusBarCompat.compat(this, getResources().getColor(R.color.primary));
	}

	private void findView() {
        top_back =  findViewById(R.id.top_back);

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {

		case R.id.top_back:
			finish();
			break;
		default:
			break;
		}
	}
	
}
